package cn.com.yunhe.service.impl;

import cn.com.yunhe.bean.CCarChexing;
import cn.com.yunhe.dao.CCarChexingMapper;
import cn.com.yunhe.service.CCarChexingService;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;


import java.util.List;
import java.util.Map;

/**
 * @Author: 赵长松
 * @Date: 2019/1/4 14:40
 * @Version 1.0
 */
@Service
public class CCarChexingServiceImpl extends ServiceImpl<CCarChexingMapper, CCarChexing> implements CCarChexingService {

    //查询所有的车型
    @Override
    public List<CCarChexing> querychexing(Map map) {
        return baseMapper.querychexing(map);
    }
    //新增车型
    @Override
    public Integer addChexing(CCarChexing cCarChexing) {
        return baseMapper.addchexing(cCarChexing);
    }
    //查找某一车型的具体信息
    @Override
    public CCarChexing queryOneChexing(Integer id) {
        return baseMapper.queryOneChexing(id);
    }
    //修改车型
    @Override
    public Integer uptChexing(CCarChexing cCarChexing) {
        return baseMapper.updatechexing(cCarChexing);
    }
    //删除某一具体的车型
    @Override
    public Integer delChexing(Integer id) {
        return baseMapper.delChexing(id);
    }


}
